//
//  HelpScrollVC.m
//  eyr
//
//  Created by Tor Gjøsæter on 6/19/12.
//  Copyright (c) 2012 University of Bergen. All rights reserved.
//

#import "HelpScrollVC.h"
#import "HelpGeneralVC.h"

@interface HelpScrollVC ()

@end

@implementation HelpScrollVC

@synthesize helpScrollView;
@synthesize identifier;



- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void) viewWillAppear:(BOOL)animated{
 	// Do any additional setup after loading the view.
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; 
    
    

        UIViewController *helpContentVC = (UIViewController *)[storyboard instantiateViewControllerWithIdentifier:identifier];
        [helpScrollView addSubview:helpContentVC.view];
        [helpScrollView setContentSize:helpContentVC.view.frame.size];


    
}

- (void)viewDidLoad
{

    [super viewDidLoad];

    
    
}

- (void)viewDidUnload
{
  //  [self setScrollView:nil];
    [self setHelpScrollView:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
